package ex_class;

public class FinalizeExam {
	public FinalizeExam() {
		System.out.println("객체 생성");
	}

	public void finalize() {
		System.out.println("객체 소멸");
	}
	
	public static void main(String[] args) {
		new FinalizeExam();
		//garbage collector 호출;
		System.gc();
	}
}
